<template>
  <div class="box">1</div>
</template>

<script setup name="demo">
import { onMounted } from "vue";
import gsap from "gsap";
onMounted(() => {
  gsap.to(".box", { x: 100, y: 100, duration: 3 }); // x y 轴移动距离 duration：时间
});
</script>

<style lang="less" scoped>
.box {
  width: 100px;
  height: 100px;
  box-shadow: 50%;
  background-color: red;
}
</style>
